#include "gl2_jni_view_GL2JniLib.h"
//#include "gl2_view.h"
#include "gl2_setup_view.h"

JNIEXPORT void JNICALL Java_gl2_jni_view_GL2JniLib_Init
  (JNIEnv *, jclass, jint width, jint height)
{
	setupGraphics(width, height);
}

JNIEXPORT void JNICALL Java_gl2_jni_view_GL2JniLib_Step
  (JNIEnv *, jclass)
{
	renderFrame();
}

JNIEXPORT void JNICALL Java_gl2_jni_view_GL2JniLib_Destroy
  (JNIEnv *, jclass)
{
	destroyFrame();
}

JNIEXPORT void JNICALL Java_gl2_jni_view_GL2JniLib_Selected
  (JNIEnv *, jclass)
{
	Selected();
}

JNIEXPORT jstring JNICALL Java_gl2_jni_view_GL2JniLib_Touch
  (JNIEnv * env, jclass)
{
	return env->NewStringUTF("haha");
}

JNIEXPORT void JNICALL Java_gl2_jni_view_GL2JniLib_Setup
  (JNIEnv *, jclass, jobjectArray, jobjectArray, jint, jint, jint)
{

}
